import Vue from 'vue'
import App from './App.vue'

import VueCompositionAPI from '@vue/composition-api'

import ECharts from 'vue-echarts'
import {use} from 'echarts/core'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import VueRouter from 'vue-router'
import router from "./router"

import {
    CanvasRenderer
} from 'echarts/renderers'
import {
    BarChart
} from 'echarts/charts'
import {
    GridComponent,
    TooltipComponent
} from 'echarts/components'

use([
    CanvasRenderer,
    BarChart,
    GridComponent,
    TooltipComponent
]);

// 全局注册组件（也可以使用局部注册）
Vue.component('v-chart', ECharts)


Vue.use(VueCompositionAPI)

Vue.config.productionTip = false

Vue.use(VueRouter)
Vue.use(ElementUI);

// 将自动注册所有组件为全局组件
import dataV from '@jiaminghi/data-view'

Vue.use(dataV)

window.CESIUM_BASE_URL = '/'

new Vue({
    router: router,
    render: h => h(App),
}).$mount('#app')
